package org.maiyoframework.core.web.common;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface ContextProvider {
	
	public void setRequestAttr(HttpServletRequest request, String key, Object value);

	public Object getRequestAttr(HttpServletRequest request, String key);

    public void addCookie(HttpServletResponse response, Cookie cookie);
	
	public Cookie getCookie(HttpServletRequest request, String name);
	
    public void setSessionAtrr(HttpServletRequest request, String key, Object value);
	
	public Object getSessionAtrr(HttpServletRequest request, String key);
	
    public String getSessionId(HttpServletRequest request, boolean isCreate);
	
	public void sessionRemove(HttpServletRequest request);

}
